/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cm.java.jpa.inicial;
import javax.persistence.EmbeddedId;
/**
 *
 * @author Marcelo
 */
public class Noticia {

    public NoticiaId getId() {
        return id;
    }

    public void setId(NoticiaId id) {
        this.id = id;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }
  @EmbeddedId 
  private NoticiaId id;
  private String contents;
  
}
